package com.sname.car.security.SpringSecurity;

import org.springframework.security.authentication.AuthenticationProvider;
import org.springframework.security.core.Authentication;
import org.springframework.security.core.AuthenticationException;

/**
 * Created By  醉美柳舞之众星捧月
 *
 * @author songx
 * @date 2018/9/28 14:34
 */
public class RestAuthenticationProvider implements AuthenticationProvider {
    /**
     * Author song  醉美柳舞之众星捧月
     * Date & Time  2018/9/28 14:35
     * Description 配置第三步 (   给 ---用户 --授权)
     */
    @Override
    public Authentication authenticate(Authentication authentication) throws AuthenticationException {
        return null;
    }

    /**
     * 支持什么类型的检验;  true：可以校验  false ： 不允许校验
     **/
    @Override
    public boolean supports(Class<?> aClass) {
        return false;
    }
}
